##############################################################################
# Python From Scratch
# Autor: Nilo Ney Coutinho Menezes
# Editora Novatec (c) 2010-2024
# Site: https://pythonfromscratch.com
#
# File: listing\chapter 08\08.1259 - No Title.py
# Description: No Title
##############################################################################
names = ["Ana", "Carlos", "Maria"]
for attempt in range(3):
try:
i = int(input("Type the index you want to print:"))
print(names[i])
except Exception as e:
print(f"Something wrong happened: {e}")